package com.learn.project2.controller.wx.home;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * \* Author: Valley
 * \* Date: 2022/1/12
 * \* Time: 17:52
 * \* Description:
 */

@NoArgsConstructor
@Data
public class HomePojo2 {


    private List<NewGoodsListBean> newGoodsList;
    private List<CouponListBean> couponList;
    private List<ChannelBean> channel;
    private List<?> grouponList;
    private List<BannerBean> banner;
    private List<BrandListBean> brandList;
    private List<HotGoodsListBean> hotGoodsList;
    private List<TopicListBean> topicList;

    @NoArgsConstructor
    @Data
    public static class NewGoodsListBean {
        /**
         * id : 1181056
         * name : 皮卡丘
         * brief :
         * picUrl :
         * isNew : true
         * isHot : false
         * counterPrice : 0
         * retailPrice : 0
         */

        private int id;
        private String name;
        private String brief;
        private String picUrl;
        private boolean isNew;
        private boolean isHot;
        private int counterPrice;
        private int retailPrice;
    }

    @NoArgsConstructor
    @Data
    public static class CouponListBean {
        /**
         * id : 95
         * name : 青龙偃月刀222
         * desc :
         * tag :
         * discount : 0
         * min : 0
         * days : 10
         * startTime : 2022-01-01 00:00:00
         * endTime : 2022-01-13 00:00:00
         */

        private int id;
        private String name;
        private String desc;
        private String tag;
        private int discount;
        private int min;
        private int days;
        private String startTime;
        private String endTime;
    }

    @NoArgsConstructor
    @Data
    public static class ChannelBean {
        /**
         * id : 1005001
         * name : 餐厨
         * iconUrl : http://yanxuan.nosdn.127.net/ad8b00d084cb7d0958998edb5fee9c0a.png
         */

        private int id;
        private String name;
        private String iconUrl;
    }

    @NoArgsConstructor
    @Data
    public static class BannerBean {
        /**
         * id : 2
         * name : 活动 美食节
         * link :
         * url : http://yanxuan.nosdn.127.net/bff2e49136fcef1fd829f5036e07f116.jpg
         * position : 1
         * content : 活动 美食节
         * enabled : true
         * addTime : 2018-02-01 00:00:00
         * updateTime : 2018-02-01 00:00:00
         * deleted : false
         */

        private int id;
        private String name;
        private String link;
        private String url;
        private int position;
        private String content;
        private boolean enabled;
        private String addTime;
        private String updateTime;
        private boolean deleted;
    }

    @NoArgsConstructor
    @Data
    public static class BrandListBean {
        /**
         * id : 1001000
         * name : MUJI制造商
         * desc : 严选精选了MUJI制造商和生产原料，
         用几乎零利润的价格，剔除品牌溢价，
         让用户享受原品牌的品质生活。
         * picUrl : http://yanxuan.nosdn.127.net/1541445967645114dd75f6b0edc4762d.png
         * floorPrice : 12.9
         */

        private int id;
        private String name;
        private String desc;
        private String picUrl;
        private double floorPrice;
    }

    @NoArgsConstructor
    @Data
    public static class HotGoodsListBean {
        /**
         * id : 1181052
         * name : 皮卡丘丘丘丘
         * brief :
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/ayilm8g2zkeqhrpc2d4s.jpg
         * isNew : true
         * isHot : true
         * counterPrice : 6299
         * retailPrice : 0
         */

        private int id;
        private String name;
        private String brief;
        private String picUrl;
        private boolean isNew;
        private boolean isHot;
        private int counterPrice;
        private int retailPrice;
    }

    @NoArgsConstructor
    @Data
    public static class TopicListBean {
        /**
         * id : 274
         * title : 没有软木拖，235436576907463
         * subtitle : 而且我热天然后突然为其提供的
         * price : 4.5555555E7
         * readCount : 46.4k
         * picUrl : https://yanxuan.nosdn.127.net/14925822213780237.jpg
         */

        private int id;
        private String title;
        private String subtitle;
        private double price;
        private String readCount;
        private String picUrl;
    }
}
